# Image
FROM elfolink/alpine-java-wkhtmltopdf:edge

# 安装运行环境
VOLUME /tmp

ENV LANG=C.UTF-8
# 安装字体 
COPY simsun.ttf /usr/share/fonts/ttf-dejavu/simsun.ttf
# 其他操作

# @see https://spring.io/guides/gs/spring-boot-docker/
COPY target/wkhtmltopdf-service.jar .
#设置时区
# RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","wkhtmltopdf-service.jar"]
